package com.util;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

@Component

public class Rename {
    private String pId;
    private String nName;
    private String oName;
    private String nAccount;
    private String oAccount;
    private String datetime;

    public Rename(){}
    public Rename(String pId, String nName, String oName, String nAccount, String oAccount, String datetime) {
        this.pId = pId;
        this.nName = nName;
        this.oName = oName;
        this.nAccount = nAccount;
        this.oAccount = oAccount;
        this.datetime = datetime;
    }

    @JsonProperty("pId")
    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    @JsonProperty("nName")
    public String getnName() {
        return nName;
    }

    public void setnName(String nName) {
        this.nName = nName;
    }

    @JsonProperty("oName")
    public String getoName() {
        return oName;
    }

    public void setoName(String oName) {
        this.oName = oName;
    }

    @JsonProperty("nAccount")
    public String getnAccount() {
        return nAccount;
    }

    public void setnAccount(String nAccount) {
        this.nAccount = nAccount;
    }

    @JsonProperty("oAccount")
    public String getoAccount() {
        return oAccount;
    }

    public void setoAccount(String oAccount) {
        this.oAccount = oAccount;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }
}
